Helpful Information
 
 
Category: VC++
Retrieving disk drive's statistics => VC++ -> MFC

Hi everybody,

I was just wondering whether there is a way of retrieving some drive statistics (i.e. total files in C:, hidden files, etc) using VC++ and its MFC.

Can anyone help me out please?

Thanks a million. :cool:

#ShAm4n

I expect your program will have to use FindFirst() and FindNext() to gather that information.

My program is indeed using the CFileFind class to perform some disk operations. But what I would like to know is if there is some sort of automated way(s) to retrieve information about an entire drive, without having to go through the whole volume.

But thanks a lot for the reply, Dragon.

I doubt if there are any Win32 API functions that will return things like number hidden files, number files on the drive, etc. When you click properties in Windows Explorer it has to go an gather all that information itself before it can display the drive statistics for the selected directory. simple stuff like drive size and free space is available as you probably already know.

I was just wondering whether or not the API had such a feature... but thanks for the reply anyway Dragon. :)










privacy (GDPR)